<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增调薪记录管理')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-adjustSalary-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">员工id：</label>
                <div class="col-sm-8">
                    <input name="employeeId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">员工名称：</label>
                <div class="col-sm-8">
                    <input name="employeeName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调薪日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="adjustDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整原因：</label>
                <div class="col-sm-8">
                    <input name="reason" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前基本工资：</label>
                <div class="col-sm-8">
                    <input name="beforeBasicSalary" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后基本工资：</label>
                <div class="col-sm-8">
                    <input name="afterBasicSalary" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前奖金：</label>
                <div class="col-sm-8">
                    <input name="beforeBonus" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后奖金：</label>
                <div class="col-sm-8">
                    <input name="afterBonus" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前午餐补助：</label>
                <div class="col-sm-8">
                    <input name="beforeLunchSalary" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后午餐补助：</label>
                <div class="col-sm-8">
                    <input name="afterLunchSalary" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前交通补助：</label>
                <div class="col-sm-8">
                    <input name="beforeTrafficSalary" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后交通补助：</label>
                <div class="col-sm-8">
                    <input name="afterTrafficSalary" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前社保基数：</label>
                <div class="col-sm-8">
                    <input name="beforePensionBase" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后社保基数：</label>
                <div class="col-sm-8">
                    <input name="afterPensionBase" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前社保比例：</label>
                <div class="col-sm-8">
                    <input name="beforePensionPercent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后社保比例：</label>
                <div class="col-sm-8">
                    <input name="afterPensionPercent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前医疗基数：</label>
                <div class="col-sm-8">
                    <input name="beforeMedicalBase" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后医疗基数：</label>
                <div class="col-sm-8">
                    <input name="afterMedicalBase" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前医疗比例：</label>
                <div class="col-sm-8">
                    <input name="beforeMedicalPercent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后医疗比例：</label>
                <div class="col-sm-8">
                    <input name="afterMedicalPercent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前公积金基数：</label>
                <div class="col-sm-8">
                    <input name="beforeAccumulationBundBase" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后公积金基数：</label>
                <div class="col-sm-8">
                    <input name="afterAccumulationBundBase" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整前公积金比例：</label>
                <div class="col-sm-8">
                    <input name="beforeAccumulationFundPercent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调整后公积金比例：</label>
                <div class="col-sm-8">
                    <input name="afterAccumulationFundPercent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "hr/adjustSalary"
        $("#form-adjustSalary-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-adjustSalary-add').serialize());
            }
        }

        $("input[name='adjustDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>